<template>
  <div :class="type"></div>
</template>

<script>
export default {
  name: 'mineMarker',
  props: {
    type: String
  }
};
</script>

<style lang="less" scoped>
.flag {
  position: relative;
  height: 20px;
  width: 3px;
  background-color: #333;

  &::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: -6px;
    left: -12px;
    border-top: 12px solid transparent;
    border-right: 15px solid #f00;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 0;
    border-bottom: 3px solid #333;
  }
}
</style>
